package cn.lcfms.cms.model;

import java.util.HashMap;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.lcfms.bin.service.BaseService;
import cn.lcfms.cms.CmsDataBase;

public class Kangfu extends CmsDataBase{

	public Kangfu(HttpServletRequest request, HttpServletResponse response, int id, BaseService service) {
		super(request, response, id, service);
	}

	@Override
	public void data() {
		service.setTable("articles").column("id","title","labels");
		service.where("category_id=19");
		service.where("mid=27");
		service.setData(id);
		List<HashMap<String, Object>> list = service.selectList();	
		request.setAttribute("list", list);	
	}

}
